
#include "Trace_t.hh"
#include <iostream>
#include <QtTest/QtTest>
#include "Trace.hh"
#include "DynTrace.hh"
#include "TraceMgr.hh"
#include "Debug.hh"


using namespace std;
using namespace TC;



static void func1()
{
  TC_DYNTRACE;
}

static void func2()
{
  TC_TRACE;
  func1();
}

static void func3()
{
  TC_TRACE;
  TC_LOG_INFO("Inside func3()");
  func2();
}

void Trace_t::tests()
{
  TC_TRACE;
  
  {
    TC_TRACE_ID("block 1");
  }
  {
    TC_DYNTRACE;
  }
  {
    TC_TRACE_ID("block 3");
  }
  {
    TC_DYNTRACE_ID("block 4");
  }

  TC_LOG_INFO("Before func3()");
  func3();

  QVERIFY(true);  
}
  



